import React from 'react';
import { DatePicker} from 'element-react'

class DateSelect extends React.Component {
    constructor(props) {
        super(props);
        this.state = {}
    }

    render() {

        return (
            <div className="source">
                <div className="block">
                    <span className='spaned'>日期 :</span>
                    <DatePicker
                        value={this.props.value1}
                        placeholder="选择日期"
                        onChange={this.props.dateChange1}
                    />
                    <span className='spaned'>至</span>
                    <DatePicker
                        value={this.props.value2}
                        placeholder="选择日期"
                        onChange={this.props.dateChange2}
                    />
                </div>
            </div>
        )
    }
}
export default DateSelect;